package com.example.demo01.controllter.exception;

/**
 * @author Mark
 * @date 2020/8/2 16:07
 * @description 被除数异常
 */
public class BaseException extends RuntimeException {

    public BaseException(String msg) {
        super(msg);
    }

    public static void main(String[] args) {
        int b = 0;
        if (b == 0) {
            throw new BaseException("被除数不能为零");
        }
    }
}
